//2009/07/29 20:29:12
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class SuperRot
{
public:
    string decoder(string m)
    {
		string p;
		p.clear();
		for(int i=0; i<m.size(); i++)
		{
			if((m[i] >='A'&& m[i]<='M') || (m[i]>='a'&&m[i]<='m'))
			{
				p += m[i] + 13;
			}
			else if((m[i] >='N'&& m[i]<='Z') || (m[i]>='n'&&m[i]<='z'))
			{
				p += m[i] - 13;
			}
			else if(m[i] >= '0' && m[i]<='4')
			{
				p += m[i] +5;
			}
			else if(m[i] >= '5' && m[i]<='9')
			{
				p += m[i] - 5;
			}
			else
			{
				p += m[i];
			}
		}
		return p;
    }
};
